package com.etennis.pojos.entity;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * (Order)表实体类
 * 积分兑换记录表
 * @author makejava
 * @since 2024-10-17 17:14:44
 */
@SuppressWarnings("serial")
@Data
@ApiModel
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders")
public class Order  {
    @TableId(type = IdType.AUTO)
    //非空
    private Long id;


    private Long memberId;

    private Long commodityId;

    /**
     * 兑换时间
     */
    private Date dealTime;

    /**
     * 兑换有效期
     */
    private Date deadline;

    private String code;

    //0已兑换 1未兑换
    private String flag;


}

